.setter-page-select {
  width: 100%;

  .like-select {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: space-between;
    height: 32px;
    padding: 0 10px;
    overflow: hidden;
    border: 1px solid #d9d9d9;
    border-radius: 2px;
    border-radius: var(--inbiz-border-radius-base);
    cursor: pointer;
    transition: all ease 0.3s;

    .like-value {
      overflow: hidden;
      color: #262626;
      white-space: nowrap;
      text-overflow: ellipsis;
    }

    .like-placeholder {
      flex: 1;
      overflow: hidden;
      color: #c8c8c8;
      white-space: nowrap;
      text-overflow: ellipsis;
    }

    .clear-btn {
      display: none;
      cursor: pointer;

      &:hover {
        color: #b1b1b1 !important;
      }
    }

    .more-btn {
      display: block;
    }

    &:hover {
      border-color: var(--ant-primary-5);

      .clear-btn {
        display: block;
      }

      .more-btn {
        display: none;
      }
    }
  }

  .like-select-diable {
    background-color: #f5f5f5;
    cursor: no-drop;

    .like-value {
      color: rgba(0, 0, 0, 0.25);
    }

    &:hover {
      border-color: #ddd;

      .clear-btn {
        display: none;
      }

      .more-btn {
        display: block;
      }
    }
  }
}

.setter-page-select-model {
  .model-box {
    width: 100%;
    height: 100%;

    .content {
      display: flex;
      height: 100%;
      background-color: #fff;
      border: 1px solid #ddd;

      .left-tree {
        display: flex;
        flex-direction: column;
        width: 185px;
        min-width: 185px;
        height: 100%;
        font-size: 12px;
        background-color: #fff;
        border-right: solid 1px #ddd;
        // overflow: auto;

        >p {
          display: flex;
          align-items: center;
          width: 100%;
          height: 40px;
          margin-bottom: 0;
          padding: 0 8px;
          cursor: pointer;
          transition: all ease 0.3s;

          .app-name {
            margin-left: 6px;
            overflow: hidden;
            white-space: nowrap;
            text-overflow: ellipsis;
          }
        }

        .app-selected {
          background-color: #e7f3ff;
          background-color: var(--ant-primary-1);
        }

        .app-selected:hover {
          background-color: #e7f3ff;
          background-color: var(--ant-primary-1);
        }

        .left-group-box {
          width: 100%;
          height: 100%;
          // overflow-y: auto;

          .group-item {
            display: flex;
            align-items: center;
            width: 100%;
            height: 32px;
            margin-bottom: 0;
            padding: 0 8px 0 30px;
            overflow: hidden;
            cursor: pointer;
            transition: all ease 0.3s;

            .group-name {
              margin-left: 6px;
              overflow: hidden;
              white-space: nowrap;
              text-overflow: ellipsis;
            }

            &:hover {
              background-color: rgba(0, 0, 0, 0.02);
            }
          }

          .group-item-child {
            padding: 0 8px 0 52px;
          }

          .app-item-box {
            .app-item-row {
              display: flex;
              align-items: center;
              height: 32px;
              margin-bottom: 0;
              overflow: hidden;

              .app-open-btn {
                display: flex;
                align-items: center;
                justify-content: center;
                width: 24px;
                height: 24px;
                transform: rotate(-90deg);
                transition: all ease 0.3s;

                .anticon {
                  display: flex;
                  align-items: center;
                  justify-content: center;
                  width: 24px;
                  height: 24px;
                  cursor: pointer;
                }
              }

              .open-app {
                transform: rotate(0deg);
              }

              .app-name {
                flex: 1;
                margin-left: 6px;
                overflow: hidden;
                white-space: nowrap;
                text-overflow: ellipsis;
                cursor: pointer;
              }

              &:hover {
                background-color: #f5f5f5;
              }
            }

            .app-group-tree {
              .ant-tree .ant-tree-treenode {
                padding-left: 16px;
              }
            }
          }

          .active {
            // background-color: var(--ant-primary-1);
            background-color: #e7f3ff;
          }

          .active:hover {
            // background-color: var(--ant-primary-color-active-deprecated-d-02);
            background-color: #e7f3ff;
          }

          .ant-tree .ant-tree-treenode {
            position: relative;
            width: 100%;
            padding: 4px 0;

            .ant-tree-title {
              margin-left: 6px;
              color: #000;
              font-size: 12px;
            }

            &::before {
              position: absolute;
              display: block;
              height: 32px;
              transition: background-color 0.3s;
              content: '';
              pointer-events: none;
              inset: 0 0 4px;
              left: 0;
              right: 0;
              top: 0;
              bottom: 0;
            }

            .ant-tree-node-content-wrapper {
              flex: 1;
              padding: 0 4px 0 0;
              overflow: hidden;
              white-space: nowrap;
              text-overflow: ellipsis;
            }
          }

          .ant-tree .ant-tree-treenode.ant-tree-treenode-selected {
            &::before {
              background: var(--ant-primary-1);
            }

            &:hover::before {
              background: var(--ant-primary-1);
            }
          }

          .ant-tree .ant-tree-node-content-wrapper.ant-tree-node-selected {
            background-color: transparent;
          }

          .ant-tree .ant-tree-treenode:hover::before {
            background: #f5f5f5;
          }

          .ant-tree-switcher .ant-tree-switcher-icon svg {
            fill: #aaa;
          }

          .ant-tree .ant-tree-node-content-wrapper .ant-tree-iconEle {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 14px;
            color: #1989fa;
            color: var(--inbiz-color-primary);
            font-size: 16px;
          }

          .ant-tree-indent-unit {
            width: 14px;
          }
        }

        .ant-spin-nested-loading {
          flex: 1;
          height: 100%;
          overflow: auto;

          .ant-spin-container {
            height: 100%;
          }
        }
      }

      .right-nav {
        flex: 1;
        height: 100%;
        display: flex;
        overflow: hidden;
        flex-direction: column;

        .right-title {
          display: flex;
          align-items: center;
          padding: 10px;

          .ant-input-affix-wrapper .ant-input {
            font-size: 12px;
            line-height: 22px;
          }

          .ant-input-affix-wrapper svg {
            font-size: 16px;
          }

          .ant-checkbox-wrapper {
            font-size: 12px;

            .ant-checkbox+span {
              padding-right: 0;
            }
          }
        }

        .page-list {
          flex: 1;
          width: 100%;
          overflow: hidden;

          .page-list-header {
            width: 100%;
            height: 40px;
            padding: 0 30px;
            color: #666;
            font-size: 12px;
            line-height: 40px;
            background-color: #fafafa;
            border-top: 1px solid #eee;
            border-bottom: 1px solid #eee;
          }

          .page-lsit-nav {
            width: 100%;
            height: calc(100% - 40px);
            overflow: hidden auto;

            .list-item {
              width: 100%;
              height: 40px;
              padding: 0 30px;
              font-size: 12px;
              line-height: 40px;
              border-bottom: 1px solid #eee;
              cursor: pointer;
              transition: all ease 0.3s;
              display: flex;
              align-items: center;

              .list-item-txt {
                flex: 1;
                overflow: hidden;
                white-space: nowrap;
                text-overflow: ellipsis;
              }

              .ant-checkbox-wrapper {
                display: flex;

                >span:last-child {
                  flex: 1;
                }
              }
            }

            .list-item:hover {
              background-color: rgba(0, 0, 0, 0.02);
            }

            .page-active {
              background-color: #e7f3ff;
              background-color: var(--ant-primary-1);
            }

            .page-active:hover {
              background-color: #e7f3ff;
              background-color: var(--ant-primary-1);
            }
          }
        }

        .ant-spin-nested-loading {
          height: 100%;

          .ant-spin-container {
            display: flex;
            flex-direction: column;
            height: 100%;
          }
        }

        .ant-input-affix-wrapper {
          width: 260px;
          margin-right: 10px;
        }

        .ant-empty {
          margin-top: 64px;
        }

        .ant-spin-dot {
          font-size: 20px;
        }
      }
    }

    .selected-box {
      display: flex;
      flex-wrap: wrap;

      .select-item {
        display: flex;
        align-items: center;
        height: 24px;
        margin: 10px 10px 0 0;
        padding: 5px;
        font-size: 12px;
        background-color: #f8f8f8;
        border-radius: 2px;

        .close {
          display: flex;
          align-items: center;
          justify-content: center;
          width: 14px;
          height: 14px;
          margin-left: 5px;
          color: #fff;
          line-height: 14px;
          text-align: center;
          background-color: #ccc;
          border-radius: 7px;
          cursor: pointer;
        }
      }
    }
  }

  .page-select-model-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8px;

    .select-count-nav {
      >p {
        margin-bottom: 0;

        >span {
          color: var(--inbiz-color-primary);
        }

        >i {
          display: inline-block;
          width: 8px;
          height: 8px;
          margin-left: 10px;
          border-right: 2px solid #666;
          border-bottom: 2px solid #666;
          transform: translateY(-2px) rotate(45deg) scale(0.8);
          content: '';
        }
      }
    }
  }
}

// :global {
  .ant-form-item-has-error {
    div[d-error='true'] {
      border-color: var(--ant-error-color);

      &:hover {
        border-color: var(--ant-error-color);
      }
    }
  }
// }